remove closure over the plugin instance