upgrade templates for new version