fix by including the plugin as a def rather than val.