renaming relay to switch