debugging, scheduler not working yet, but get rid of some assertion failure bug