Variable substitution

first pass at variable substitution for ios/android