refine plugin spec