set optimize default maxSegments to 20