rebuild if template changed