changes to download script