adds template conditional comment support (depending on debug flag)