remove some punc in segmentation; move constants json to single file