resolved issues with message logging