explain how the plugin works