experimenting with moving unit addtions to separate function
additional error trapping and exception handling for more robust scraping