moved the http server into a module