add upgrade function into install_script.