dictionary: add a switch