adding state machine to conveng