initial implementation of http server