refactor LinkedModes
huge refactor of LinkedMode support