updates to grep search functions