add threads & progressbar