fix to cmd.rb