added support for polyline