add checks for missing sections and chapters