handle exclude correctly