add content-type to response headers
remove debug output