fix up monkeypatch