changed lookup of in 5.2 environment to __index functions