get message need to be synchronized.