opaque port to port in lua code