fixed for new plugin init