fix up the way we generate the xml!