progress bar added (fixes #1)