add full support for polyline