add fix handling for serializing files during import