. Canada, This study was funded by Natural Environment Research Council's Human Modified Tropical Forests (HTMF) Programme (NE/K016148/1), with additional support from a Study Abroad Studentship awarded to RD by The Leverhulme Trust, UMS CNRS 2700

, CONFLI CT OF INTERESTS The authors have no conflict of interests

. Author and . Butions,

S. J. , R. T. , I. B. , K. B. ;-r, and S. J. , provided laboratory, facilities, protocols and bioinformatics pipelines. G.V. generated new sequences and H.B. facilitated fieldwork. E.C. contributed to laboratory procedures and data processing

, All 16S sequences generated for this study are available on Gen-Bank, Accession nos: MG996889-MG996900

. O-r-c-i-d-rosie and . Drinkwater,

. R-e-f-e-r-e-n-c-e-s,

A. Alberdi, O. Aizpurua, M. T. Gilbert, and K. Bohmann, Scrutinizing key steps for reliable metabarcoding of environmental samples, Methods in Ecology and Evolution, vol.9, issue.1, pp.134-147, 2017.

M. J. Anderson and D. C. Walsh, PERMANOVA, ANOSIM, and the Mantel test in the face of heterogeneous dispersions: What null hypothesis are you testing?, Ecological Monographs, vol.83, issue.4, pp.557-574, 2013.

J. Binladen, M. T. Gilbert, J. P. Bollback, F. Panitz, C. Bendixen et al., The use of coded PCR primers enables high-throughput sequencing of multiple homolog amplification products by 454 parallel sequencing, PLoS ONE, vol.2, issue.2, pp.1-9, 2007.

E. Borda and M. E. Siddall, Arhynchobdellida (Annelida: Oligochaeta: Hirudinida): Phylogenetic relationships and evolution. Molecular Phylogenetics and Evolution, vol.30, pp.213-225, 2004.

S. Calvignac-spencer, F. H. Leendertz, M. T. Gilbert, and G. Schubert, An invertebrate stomach's view on vertebrate ecology, BioEssays, vol.35, issue.11, pp.1004-1013, 2013.

S. Calvignac-spencer, K. Merkel, N. Kutzner, H. Kühl, C. Boesch et al., Carrion fly-derived DNA as a tool for comprehensive and cost-effective assessment of mammalian biodiversity, Molecular Ecology, vol.22, issue.4, pp.915-924, 2013.

C. Carøe, S. Gopalakrishnan, L. Vinner, S. S. Mak, M. H. Sinding et al., Single-tube library preparation for degraded DNA, Methods in Ecology and Evolution, vol.9, issue.2, pp.410-419, 2017.

A. Chao, N. J. Gotelli, T. C. Hsieh, E. L. Sander, K. H. Ma et al., Rarefaction and extrapolation with Hill numbers: A framework for sampling and estimation in species diversity studies, Ecological Monographs, vol.84, issue.1, pp.45-67, 2014.

N. J. Deere, G. Guillera-arroita, E. L. Baking, H. Bernard, M. Pfeifer et al., High carbon stock forests provide co-benefits for tropical biodiversity, Journal of Applied Ecology, vol.55, pp.997-1008, 2017.

K. Deiner, H. M. Bik, E. Mächler, M. Seymour, A. Lacoursière-roussel et al., Environmental DNA metabarcoding: Transforming how we survey animal and plant communities, Molecular Ecology, vol.26, issue.21, pp.5872-5895, 2017.

K. Deiner, E. A. Fronhofer, E. Mächler, J. Walser, and F. Altermatt, Environmental DNA reveals that rivers are conveyer belts of biodiversity information, Nature Communications, vol.7, 2016.

V. Elbrecht, B. Peinert, and F. Leese, Sorting things out: Assessing effects of unequal specimen biomass on DNA metabarcoding, Ecology and Evolution, vol.7, issue.17, pp.6918-6926, 2017.

R. M. Ewers, M. J. Boyle, R. A. Gleave, N. S. Plowman, S. Benedick et al., Logging cuts the functional importance of invertebrates in tropical rainforest, Nature Communications, vol.6, p.6836, 2015.

R. M. Ewers, R. K. Didham, L. Fahrig, G. Ferraz, A. Hector et al., A large-scale forest fragmentation experiment: The stability of altered forest ecosystems project, Philosophical Transactions of the Royal Society B: Biological Sciences, vol.366, pp.3292-3302, 1582.

G. F. Ficetola, P. Taberlet, and E. Coissac, How to limit false positives in environmental DNA and metabarcoding?, Molecular Ecology Resources, vol.16, issue.3, pp.604-607, 2016.

S. C. Fogden and J. Proctor, Notes on the feeding of land leeches (Haemadipsa zeylanica Moore and H. picta Moore) in Gunung Mulu National Park, Biotropica, vol.17, issue.2, pp.172-174, 1985.

T. G. Frøslev, R. Kjøller, H. H. Bruun, R. Ejrnaes, A. K. Brunbjerg et al., Algorithm for post-clustering curation of DNA amplicon data yields reliable biodiversity estimates, Nature Communications, vol.8, issue.1, 2017.

P. G?siorek and H. Ró?ycka, Feeding strategies and competition between terrestrial Haemadipsa leeches (Euhirudinea:Arhynchobdellida) in Danum Valley rainforest, Folia Parasitologica, vol.64, pp.1-7, 2017.

D. L. Gaveau, S. Sloan, E. Molidena, H. Yaen, D. Sheil et al., Four decades of forest persistence, clearance and logging on Borneo, PLoS ONE, vol.9, issue.7, 2014.

A. Gómez and S. Kolokotronis, Genetic identification of mammalian meal source in dung beetle gut contents, Mitochondrial DNA Part A, vol.28, issue.4, pp.612-615, 2016.

F. R. Govedich, W. E. Moser, and R. W. Davies, Annelida: clitellata, hirudinea, euhirudinea, Freshwater invertebrates of the Malaysian region, pp.175-190, 2004.

S. R. Hardwick, R. Toumi, M. Pfeifer, E. C. Turner, R. Nilus et al., The relationship between leaf area index and microclimate in tropical forest and oil palm plantation: Forest disturbance drives changes in microclimate, Agricultural and Forest Meteorology, vol.201, pp.187-195, 2015.

T. C. Hsieh, K. H. Ma, and A. Chao, iNEXT: An R package for rarefaction and extrapolation of species diversity (Hill numbers), Methods in Ecology and Evolution, vol.7, pp.1451-1456, 2016.

D. H. Huson, A. F. Auch, J. Qi, and S. C. Schuster, MEGAN analysis of metagenomic data, Genome Research, vol.17, issue.3, pp.377-386, 2007.

M. L. Kampmann, I. B. Schnell, R. H. Jensen, J. Axtner, A. F. Sander et al., Leeches as a source of mammalian viral DNA and RNA-A study in medicinal leeches, European Journal of Wildlife Research, vol.63, issue.2, 2017.

A. Kendall, The effect of rainforest modification on two species of South-East Asian terrestrial leeches, Haemadipsa zeylanica and Haemadipsa picta, 2012.

R. J. Kent, Molecular methods for arthropod bloodmeal identification and applications to ecological and vector-borne disease studies, Molecular Ecology Resources, vol.9, issue.1, pp.4-18, 2009.

A. Kocher, B. De-thoisy, F. Catzeflis, M. Huguin, S. Valière et al., Evaluation of short mitochondrial metabarcodes for the identification of Amazonian mammals, Methods in Ecology and Evolution, vol.8, issue.10, pp.1276-1283, 2017.
URL : https://hal.archives-ouvertes.fr/hal-01836328

A. Kocher, B. De-thoisy, F. Catzeflis, S. Valiere, A. Bañuls et al., iDNA screening: Disease vectors as vertebrate samplers, Molecular Ecology, vol.38, issue.1, pp.42-49, 2017.
URL : https://hal.archives-ouvertes.fr/hal-01761584

Y. T. Lai, T. Nakano, and J. H. Chen, Three species of land leeches from Taiwan, Haemadipsa rjukjuana comb. n., a new record for Haemadipsa picta Moore, and an updated description of Tritetrabdella taiwana (Oka), Zookeys, issue.139, pp.1-22, 2011.

A. Larsson, AliView: A fast and lightweight alignment viewer and editor for large datasets, Bioinformatics, vol.30, issue.22, pp.3276-3278, 2014.

P. S. Lee, K. W. Sing, and J. J. Wilson, Reading mammal diversity from flies: The persistence period of amplifiable mammal mtDNA in blowfly guts (Chrysomya megacephala) and a new DNA mini-barcode target, PLoS ONE, vol.10, issue.4, 2015.

I. Macgregor-fors and M. E. Payton, Contrasting diversity values: Statistical inferences based on overlapping confidence intervals, PLoS ONE, vol.8, issue.2, pp.8-11, 2013.

C. Mercier, F. Boyer, A. Bonin, and E. Coissac, SUMATRA and SUMACLUST: Fast and exact comparison and clustering of sequences, Programs and Abstracts of the SeqBio workshop, pp.27-29, 2013.

J. Oksanen, F. G. Blanchet, R. Kindt, P. Legendre, P. R. Minchin et al., vegan: Community ecology package, 2017.

J. Payne, C. M. Francis, and K. Phillipps, Field guide to the mammals of Borneo, 1985.

Q. Phillipps and K. Phillipps, Phillips's field guide to the mammals of Borneo and their ecology, 2016.

. R-core-team, R: A language and environment for statistical computing, Vienna: Austria: R Foundation for Statistical Computing, 2018.

J. M. Roussel, J. M. Paillisson, A. Tréguier, and E. Petit, The downside of eDNA as a survey tool in water bodies, Journal of Applied Ecology, vol.52, issue.4, pp.823-826, 2015.
URL : https://hal.archives-ouvertes.fr/hal-01210284

V. B. Salinas-ramos, L. G. Herrera-montalvo, V. León-regagnon, A. Arrizabalaga-escudero, and E. L. Clare, Dietary overlap and seasonality in three species of mormoopid bats from a tropical dry forest, Molecular Ecology, vol.24, issue.20, pp.5296-5307, 2015.

I. B. Schnell, K. Bohmann, and M. T. Gilbert, Tag jumps illuminated -Reducing sequence-to-sample misidentifications in metabarcoding studies, Molecular Ecology Resources, vol.15, issue.6, pp.1289-1303, 2015.

I. B. Schnell, K. Bohmann, S. E. Schultze, S. R. Richter, D. C. Murray et al., Debugging diversity -A global scale exploration of the potential of terrestrial bloodfeeding leeches as a vertebrate monitoring tool, Molecular Ecology Resources, pp.1-17, 2018.

I. B. Schnell, R. Sollmann, S. Calvignac-spencer, M. E. Siddall, D. W. Yu et al., iDNA from terrestrial haematophagous leeches as a wildlife surveying and monitoring tool -Prospects, pitfalls and avenues to be developed, Frontiers in Zoology, vol.12, issue.1, p.24, 2015.

I. B. Schnell, P. F. Thomsen, N. Wilkinson, M. Rasmussen, L. R. Jensen et al., Screening mammal biodiversity using DNA from leeches, Current Biology, vol.22, issue.20, pp.262-263, 2012.

M. Schubert, S. Lindgreen, and L. Orlando, AdapterRemoval v2: Rapid adapter trimming, identification, and read merging, BMC Research Notes, vol.9, issue.1, 2016.

R. S. Sikes and W. L. Gannon, Guidelines of the American Society of Mammalogists for the use of wild mammals in research, Journal of Mammalogy, vol.92, issue.1, pp.235-253, 2011.

B. Sket and P. Trontelj, Global diversity of leeches (Hirudinea) in freshwater, Hydrobiologia, vol.595, issue.1, pp.129-137, 2008.

P. G. Taylor, Reproducibility of ancient DNA sequences from extinct Pleistocene fauna, Molecular Biology and Evolution, vol.13, pp.283-285, 1996.

M. Tessler, S. R. Weiskopf, L. Berniker, R. Hersch, K. P. Mccarthy et al., Bloodlines: Mammals, leeches, and conservation in southern Asia, Systematics and Biodiversity, vol.16, issue.5, pp.488-496, 2018.

O. R. Wearn, J. M. Rowcliffe, C. Carbone, H. Bernard, and R. M. Ewers, Assessing the status of wild felids in a highly-disturbed commercial forest reserve in Borneo and the implications for camera trap survey design, PLoS ONE, vol.8, issue.11, 2013.

O. R. Wearn, J. M. Rowcliffe, C. Carbone, M. Pfeifer, H. Bernard et al., Mammalian species abundance across a gradient of tropical land-use intensity: A hierarchical multi-species modelling approach, Biological Conservation, vol.212, pp.162-171, 2017.

S. R. Weiskopf, K. P. Mccarthy, M. Tessler, H. A. Rahman, J. L. Mccarthy et al., Using terrestrial haematophagous leeches to enhance tropical biodiversity monitoring programmes in Bangladesh, Journal of Applied Ecology, vol.55, issue.4, pp.2071-2081, 2017.

K. Wells, M. Pfeiffer, M. B. Lakim, and K. E. Linsenmair, Use of arboreal and terrestrial space by a small mammal community in a tropical rain forest in Borneo, Malaysia, Journal of Biogeography, vol.31, issue.4, pp.641-652, 2004.

Q. D. Wheeler, P. H. Raven, and E. O. Wilson, Taxonomy: Impediment or expedient?, Science, vol.303, issue.5656, pp.285-285, 2004.

M. L. Zepeda-mendoza, K. Bohmann, A. Carmona-baez, and M. T. Gilbert, DAMe: A toolkit for the initial processing of datasets with PCR replicates of double-tagged amplicons for DNA metabarcoding analyses, BMC Research Notes, vol.9, issue.1, pp.1-13, 2016.