use response handler to process response