added support for progress bars