function mapServer (data) {
  var server
  if (data instanceof Server) {
    server = data
  } else {