removed unneed ssl handshake code