zmq refactored.