changed logic in client.rb and increased version