extracted cost characterization; getting ready to write data file