very minor updates to template formatter