use the new API to register the plugin