mode switcher for #65