rewrite architecture scheduler components
refactored code compiles
runs user thread properly