mention exception handling for file analysis