compatibility with template-toolkit