simple lua api correction