working autodetect support