more robust support detection