refactored for spell checker client and service