refactor config.rb