style, major bug fix with xmlfile