add grep argument for multiple tables