more experiments with templates and scope