remove endpoint specific code; construct handshake message in Connection
remove unnecessary code