it compiles. still need to figure out the infinite loop and do pagedir synchronization