not using deprecated state pusblisher anymore