added output copy filtering.