[ENHANCE] improved object to class and id transformations