updated the upgrade script and language class