add some nice methods to GPDOM