fixes to http class