fixed client.rb in autopki mode