more lua porting