update network's api and server.cc