change for api flush & data_tx