make compatible with faraday 0.9.0