cleanup template files