adding an upgrade script.