some GPDOM improvements