indexing languages from files