more work for autocomplete on dialogs + improve logging