add response processing mechanism