filter nodes using a simple include or exclude list