adding multi root feature for template engine