moving embedded methods out of load_pgn