added cost metrics to output file