remove old debug prints
trivial refactoring
find next task. not workring :)
find next task. still falling. refactoring
work with often deadlock
still unstable: problem in waitForTask
works fine