flush messages