added support for multi-polygons