add assert to check for objects that are not mapped or not copied