improve XML output