closes #8

May need more robust overwriteAndReplace function that takes a map of replacements