now mocking autocompetion, and fixed the bug for real