initial version of message logging implemented