better unify_object_attrs