keep formatting of XML
cleanup debug