progress bar implemented untested at this stage