add_seg: option to use pre-defined index