Port plugins to the new plugin API