irqs finally work properly, just need to fix time() and sleep()