use a hash of magic variable names to ints, which allows fast lookup followed by a jump table dispatch