added progress bar support