add nodename to template