added ability to watch for template changes