things around polygon segmentation and stubs for everything else