a better monkeypatch