localize global lua function call