added ability to grep for multiple attributes