rewrite of platform irq handler