add -in and -ex filters (closes #8)