Issue #1666 datasegment api was removed.