use templates in sanity checking