move load_app below modgit func