add support for progress bar