added basic lua scripting support