first bit of lua hooking