use test, include and exclude options as suggested by @sokra