use consolidate to make template engine configurable