corrected messages logging