state machine moved to project easystate.