refcatoring of the IRQ-handling
seems now to work but not correctly reset after interrupt was handled