more robust bulk indexing