added templating with cheetah