better autocomplete behaviour and spellcheck