add code to server