adding lua scripting support