remove scheduler
fix all pointer problems
fix all include problems