added script to substitute files