removed set_mode() and _get_mode()