renamed AppResponseWriter to responseWriter