write xds data only when option is passed