cleaned up http server

added some better logging