use publish.publish instead of cloud.query