handshake wait and ready