fix task definition stuff