added threads for downloading