defs for dot templates