add some methods, fix a major bug in getLeader() that was causing things to