added initialize_on_precompile for heroku.