updates to patching history validation and better error reporting