update for lua