update segmentation opt with new UBT design, ready for test

ok to merge