code puhs to server.