replaced faraday with rest-client