moved buildTemplate out of the format evaluator