strip old templates