use ensure to publish message