change script to use xml instead of scraping