use cname in template