massive changes to the way polypaths are generated, much cleaner now