clean up base template file