updated to work 3 lua.