this is not nice looking, but it successfully applies the patch.