add thread for downloading files