new version state machine code