lua api update with channel and handler (lua side not done yet)