updated secret token error so the app can compile on heroku
fixed loading of files with deprecation notice