moved enable vars to State Machine header and source