changes for downloader and thread utils