add auto upgrade to upgrade scripts.