add autocompletion to g