fixed bug with adding threads and calling the download script