code of server