attempted fix to eof errors when parsing multiple pgns