patch for plugin