fixed some multitasking problems