parsing of files, error checking when building trie, etc.