debugging templates