but we set `app.root_path` immediately before the `if`