scripts to parse results file