got all statemachine methods working