update upgrade script