uart cleanups