finished first version of downloader