upgrade and publish