autodetect ace mode