extract the results_file class
move some comparer logic back into the comparer