work on lua generator