enhanced error handling for missing table sections