fixes compilation errors with previous commits. reading an index from disk should probably be a private implementation of the DirectoryContextIndex. probably even a separate parser class, but this will do