updated upgrade script again