fixed results indexing
pass the full path to the extractor and let it figure out
avoid listing the templates twice
preliminary support for namespaces templates