add some utility routines.