handshake works until stage 2