cleanup obsolete templates