upgrade templates.