fixed some grep stuff