use faraday middleware for json parsing