split code login of zmq