Planning for the unplanned