upgrade script working