sendresponse now protected function