replace request module with http.get