added keep/ignore support (untested)