comlete server.go

but havan't  test