publish and update