simplified zmq handshake impl