got rid of bug in retrieved message logging