restricted app to only run when project is a leaf