contact codes list to full state machine conversion