getting progress bar working in Windows