updates to regular patch code