get rid of template definitions in files