add plugins logic.