changed message logging