pass sendResponse to message handler