set output with use $this->response->body() rather than echoing