print command at the end of messages