-set file2 as ref in report generation
-minor refactor