minor changes to download script