move server to server/socket