add beep and uart thread