patching improvements