various fixes relating to download URL