pass the publish and connect