remove the file object from the serialization