added lots of logging to try to find bug with appendentries