flush on every message