change http-client to use request module