clean up client.rb