add pgn support