forgot to change inner state machine constructor to not accept task state