fixed cur_tcb setting, dispatch sleep, some others, panic() as debug statement