-base: port to new SEGMENT API