switched to own version of faraday_middleware