add handling for the case of missing summary.out file
fix minor bug