detection improvements