rm "cleanpath" monkeypatch
rm to_flags monkeypatch
rm nil split monkeypatch
rm probably unnecessary code
rm last monkeypatch