indexDepth, remove externals from globals