added some imlementation to th server.cc