several fix for lua scripting