changing the way the plugin is initialized