fix docs, fix bug where patches would be generated that go nowhere