add switchnode