added logging of all messages