added download percentage to progress bar; don't redefine dir