implemented message log handling