added some functions to zObject