implements progress bar fix #7