update lua mode, this was better