add some support for PGNs with NAGs and variations