refactoring passthrough_filter agent