implemented downloader thread.