minor improvements to loadPatch