script upgrade