n-e: migrate life support to Lua