added debug option to look at the xml