initial working version of the plugin