modified to work with zmq 4.0.4