added more debug to http request handling