some stuff for runTask, not done