auto discovery mode