initialize server code