tweak task state machine