output buffer for error cleaning and gzip