moved template build