 	let server = HTTPServer()
 	var requestFilters = [(HTTPRequestFilter, HTTPFilterPriority)]()
 	var routes = [Route]()
+	private var listenPort = 8088
 	private(set) var dao: Rc2DAO!
 	private var authManager: AuthManager!
 	private var dataDirURL: URL!

			robj.add(defaultRoutes())
		}
		server.addRoutes(robj)
		server.serverPort = 8181

		do {
			// Launch the HTTP server on port 8181
			try server.start()
		} catch PerfectError.networkError(let err, let msg) {
			print("Network error thrown: \(err) \(msg)")

		let cli = CommandLine()
		let dataDir = StringOption(shortFlag: "D", longFlag: "datadir", required: true, helpMessage: "Specify path to directory with data files")
		cli.addOption(dataDir)
		let portOption = IntOption(shortFlag: "p", helpMessage: "Port to listen to (defaults to 8088)")
		cli.addOption(portOption)
		do {
			try cli.parse()
			dataDirURL = URL(fileURLWithPath: dataDir.value!)
			guard dataDirURL.hasDirectoryPath else { throw Errors.invalidDataDirectory }
			if let pvalue = portOption.value { listenPort = pvalue }
		} catch {
			cli.printUsage(error)
			exit(EX_USAGE)
