working autodetection and display resulting config