moved substitutions to sed files