added error handling so that files that contain syntax errors are ignored (maybe they’re never used)