start adding support for writing native object ids