adds progress bar in text_utils.py