add a progress bar for the output buffer