update after publish. json is used for sending and receiving msg