merge 2
added sendResponse