essentially completed the plugin