added min/max expr templates
added threshold expr templates