updated prev commit with wrt irq recursion