added logging instead of print statements.  auto leader on when solo