added basic handshake