script to upgrade version