add switchRelative func and shortcut