Rewrite server.go