add savegame parsing code