add grep fix from Charles