added progress bar, fixed multithread issues