moved bm_toggle to shared