refinement for plugin