added segment mode setting interface