made number of switches per level publicly configurable