upgrade should not rely on other scripts