added initial xml parsing