relay: add support for mode changes again