added an option to disable the discovery server.