use sed rather than grep so we can excise the cruft