add state to connection process