publish metadata first because of timeout on client side