quick fix in rest_client.rb