add an api to initialize zmq connection