put everything in place before patching