link server code