assoc/array switch for payload