fix extension to use the new section API