helper: also store the plugin in the object