make all segments configurable