updates task flow.