make output stats respond to different mime types