headers should be added to the outer most document when there are children within child documents