nice little macro wizardry to capture the values of named variables in a surrounding context