add the more code of server