improve auto complete config