sync mode state machine