simplify include/exclude conditions