retooling to add sub codeblocks and piping instructions in substitutions