improved the download script