fix autocomplete, add some better debugging

no longer allow autocomplete to cross languages, except going from non-english to english