index each directory