move update config function in lua