doesn't `app_dir` need to be initialized somewhere?