added option to enable/disable autocompletion (enabled by default)