update lua interface to speed and mode