worked on the scheduler

Signed-off-by: gitta-mannen <mail@janpettersson.com>