updated to latest faraday middleware