added some xml parsing