updated for plugin