fixes to summary file script