refinement for plugging or unplugging an plugin