RF: refacotred grep and wildcards