server.cc got to big, separate into multiple files