uart version working, need to add init sync code