update to segmented stacks support