init app on precompile