updated loading of segmentation files