made tweaks to xml script