improve zmq connecting to support multiple clients, gzip for nginx