move all plugin to definePlugin