update flushindex call