rm duplicates and useless files