add methods to gobject