improved task dependencies