first working version of the plugin