add changes to insert 2 hooks : event_pre_section & event_post_section