first shy efforts to add lua on_connect()