updated client.rb