add templating, constants