refactoring exceptions for autocomplete storage