added user state publishing