adding some debug output to rails.rb