store uncommitted commands in the replay map. go back to broadcasting AER when getting heartbeats
move code above comment