extracted working on files concurrently with progress bar