redoing handshake protocol