organizing cloudsegmenter class