work on dealer.rb