flushing after begin message