working enable/disable functionality for interrupts