clean up uart library