migrate from malloc/free fo isr_queue