change BatchFetch to return indices