add muiltline seg support