example election on server side