refactoring, trying to get object id reading working with native ids