initial work to the plugin