fixes for http.rb