handle closed templates, etc