auto detect partial