uart clean up