updated state machine and microinstructions