Interrupt handling

for the sake of elegance