fixed serialize_everything script