must preserve uid when rebuilding an entity