uart enabled. some bugs fixed. test passed.