add some error handling to logic to catch a case that blew up the last run