made zmq code backwards compatible to zmq2