publish switching