emulating open and closed elections