initial logic for maintenance cycle, normal sig handling; still needs seg fault eddge case logic