state machine MK I