move yml reading

to application.rb