fix main so that it correcly uses the zmq interface