adding upgrade script