progress bar restructuring, now it actually works