add flushing to sequences