just saving the current state
uart receiver