added support for mid line autocompletion