server side handling of votes