flush after send