updated server to work with or without zmq