detex: switching to inreplace