got segmentation and seg. export working