added some zmq logic