add Polyline Encoder and helper