adding segment io