adds progress bar to script