fixed the grep syntax. maybe I was tired when I wrote this?