add receiveAllMsg method