debugging handshake