statemachine attempt