fix segmentio script