main class for the plugin