tested backword compability state machine