updated patch for general use