WIP3

segment impl