add patch for adhoc