left debugging code. also tiny template tweak.