fixes to file reading for diffxs