message logging added