removed the hashtable interation loop (which is an NYI) from new(). also fixed one place of misuse of Lua gloabls.