adding xml parsing bugfix