upgraded rest_client