refactoring boot.rb