update lua mode