added custom responseWriter