add segment io