accurate sed/replaces