changed up the http request process