final version of the plugin