update setMode to respect new interface