starting to implement lua engine