fixed section nesting and references