use correct publishResult API