add diry message number flush mechanism