handle object id more consistently