add support for polylines and lines