replace legacy variable substitution with the new syntax
Merge pull request #2 from brad/legacy_var

replace legacy variable substitution with the new syntax