client refactoring, spellchecker