sanitize: tie-together val/dict logic