divide server.rb to conquer