added instance flex.refresh_index