update response handling