write mininode lua bind