add progressbar support