respect both 32bit and 64bit indexing for the DFS implementation