finish turning dictionaries into xml/json