added option for grep filter