improved clean triple file command