a package of template logic helpers