polylines almost almost (minor improvement)