add set_toggle and toggle.add/remove utilities. tests