added mechanism to export results