simplify app_init
remove temp files from resource folder