some cleanup with progress bar output.