jconley's inreplace tweak