adapt to new plugin interface