integrated server code