first server code