minor fixes to xml/json