do XML generation properly ;)