templating troubles