added lua Entity api