minor comment: can use a common method to run callbacks for servers and segments