add API check_download_upgrade