flush progress so it appears immediately