allow for descending sort order in listRuns();
fixed endRecord() so that it writes out execution metadata