extract sections to partials