add uspport for sparse indexes