improve messages logger