added logic and stuff
added vote failure detection