add debug mode to run-http-server