remove dependence on deprecated add_mod_to_section