add Statemachine