pass block directly to grep