prevent duplicate loading of templates