first implementation of the plugin