scheduler fixes
working scheduler 1 thread
fixes from Yu fail