finalizing the server setup