switch to using faraday instead of rest-client.