implemented local file storage for slices' connected components