added flex.refresh_index