fixed task switching, added sleep syscall, fixed cursor