templateMap and such