improve plugin config