made some fixes to the http helper.