plugin delegate moved to lib/plugin-util.js