removed the handshake from the lib in favor of  doing it in the server.