fix, made interrupts according to current connections