[code] more templating