first upgrade script