Dealing with the aftermath of a contentious election