update for faraday 0.9 compatibility