add custom substitutions sections

- also use backslashes to escape instead of double dollar