[FEATURE] write out filtered output