added ability to remove fields from file