better printing of messages