added lua intelligence