signal handling for interrupts now works completely