autocomplete and better logging