modify for plugin