implemented subnode templating