add compatibility for latest faraday