update to new plugin init