added segmentio initialization