discard_invalid option for filters