normalize messages