added: upgrade event handler to check the correct classes for the plugin