now using directly http.ClientRequest instead of http.request