implemented some more substitution. unsure as to wheher or not everything
is correct
got some really basic letcases working. i suspect problems due to
applications within applicaitons are now happening