updates to generate.rb