improve logic on keyword exclusions