fix dumping to file, and getting ground truth from Mike's loaders