write results to a file to prevent accidents