Link from mode to rxdirs and visa versa

(cherry picked from commit 2f668a33ab09d80074111512ef7228a81decab42)