add helper method for building objects
change disksafe creation method for compat with cdp 5.4