added exception handling for file not found