improve mkconfig.rb