added basics of a "replacer" class for doing mass replacements