fix x coord sorting
split paths into separate polygons