load files into a memory index