cleanup uart library