added error handling to catch missing data files