correctly init the plugin object