rough filtered, omit the filtered output dir
correct grep option
separate functions