finish establishing connection