starting to add auto-config support