save results to file for future recovery