rework of update method

try to fix changing baudrate