split up server.go file
wip