changed the http lib to a class