implemented some taskmanager funcs