try all indexes when getting an object