patch the right thing