flush after every record, specify host/port