replace InMemoryFileSystem with a new Trie implementation