init app before