support both old and new versions of the plugin