templates upgrading