add rport processing in sendResponse